package com.ruoyi.student_club.vo;

import com.ruoyi.student_club.domain.BaseDomain;
import lombok.Data;

/**
 * @Author lin
 * @Date 2022/1/27 15:12
 */
@Data
public class FirstPosterVo extends BaseDomain {

    private Long posterId;

    private String path;

    public void setPath(String path) {
        if (path != null && path.contains("upload")){
            this.path = path.substring(path.indexOf("upload")-1);
        }
    }

}
